import { Injectable } from "@nestjs/common";
import { OnEvent } from "@nestjs/event-emitter";

@Injectable()
export class EventEmitterService {

    @OnEvent('user.create', { async: true })
    handleUserCreateEvent(payload:any) {
        console.log('event detected: \\user.create/', payload);
    }
}
